package Test;

public class TriAngle {
    private float base;
    private float height;
    public TriAngle(){}
    public TriAngle(float base,float height){
        this.base=base;
        this.height=height;
    }
    public float Plus(){
        return base*height;
    }
    public void showInfo(){
        float area;
        area=Plus();
        System.out.println("area:"+area);
    }

}
